<template>
  axios
  <el-button @click="get">get</el-button>
  <el-button @click="post">post</el-button>
</template>
<script setup lang="ts">
  import { getApi } from '../api/get'
  import { postApi } from '../api/post'
  const get=()=>{
    console.log('get')
    getApi().then(res=>{
      console.log(res)
    })
  }
  const post=()=>{
    console.log('post')
    postApi({poi:'yui',pas:'321'}).then(res=>{
      console.log(res)
    })
  }
  // const postData={{"poi":"yui"}:""}
</script>